package com.ssy.lingxi.fallback;

import com.ssy.lingxi.common.response.ResponseCode;
import com.ssy.lingxi.common.response.Wrapper;
import com.ssy.lingxi.dto.request.AddSettlementApplyAmountVO;
import com.ssy.lingxi.dto.request.CallbackCommunicationPayVO;
import com.ssy.lingxi.feign.MemberSettlementControllerFeign;
import org.springframework.stereotype.Component;

import javax.validation.Valid;

@Component
public class MemberSettlementControllerFallback implements MemberSettlementControllerFeign {

    /**
     * 新增请款单
     * @author 伍将
     * @date 2021/3/24
     * @version 2.0.0
     */
    @Override
    public Wrapper<Void> addApplyAmount(@Valid AddSettlementApplyAmountVO addVO) {
        return Wrapper.fail(ResponseCode.SETTLE_ACCOUNTS_SERVICE_ERROR);
    }

    @Override
    public Wrapper<Boolean> confirmCommunicationPay(CallbackCommunicationPayVO request) {
        return Wrapper.fail(ResponseCode.SETTLE_ACCOUNTS_SERVICE_ERROR);
    }
}
